package kr.saeildamil.androidstudty;

import kr.saeildamil.androidstudty.ch04.ImageViewTest;
import kr.saeildamil.androidstudty.ch05.FrameEx;
import kr.saeildamil.androidstudty.ch05.GravityEx1;
import kr.saeildamil.androidstudty.ch05.PaddingEx;
import kr.saeildamil.androidstudty.ch05.RelativeEx;
import kr.saeildamil.androidstudty.ch06.CellPosition;
import kr.saeildamil.androidstudty.ch06.CellSpan;
import kr.saeildamil.androidstudty.ch06.CodeLayout;
import kr.saeildamil.androidstudty.ch06.GridLayoutEx;
import kr.saeildamil.androidstudty.ch06.InflationEx;
import kr.saeildamil.androidstudty.ch06.LayoutParameterEx;
import kr.saeildamil.androidstudty.ch06.MultiPageEx;
import kr.saeildamil.androidstudty.ch06.SetParameterEx;
import kr.saeildamil.androidstudty.ch07.CustomViewEx;
import kr.saeildamil.androidstudty.ch07.DrawBitmapEx;
import kr.saeildamil.androidstudty.ch07.ToastLayoutEx;
import kr.saeildamil.androidstudty.ch07.Vibrate;
import kr.saeildamil.androidstudty.ch08.Ch08Main;
import kr.saeildamil.androidstudty.ch09.Ch09Main;
import kr.saeildamil.androidstudty.ch11.Ch11Main;
import kr.saeildamil.androidstudty.ch12.Ch12Main;
import kr.saeildamil.androidstudty.ch13.Ch13Main;
import kr.saeildamil.androidstudty.ch14.Ch14Main;
import kr.saeildamil.androidstudty.ch16.Ch16Main;
import kr.saeildamil.androidstudty.ch17.Ch17Main;
import kr.saeildamil.androidstudty.ch18.Ch18Main;
import kr.saeildamil.androidstudty.ch19.Ch19Main;
import kr.saeildamil.androidstudty.exam.ExamListOnly;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.btnandedit_btn:
			//startActivity(new Intent(this, ButtonAndEditText.class));
			startActivity(new Intent(this, ExamListOnly.class));
			//startActivity(new Intent(this, DateTimePicker.class));
			break;
		case R.id.imageviewtest_btn:
			startActivity(new Intent(this, ImageViewTest.class));
			break;
		case R.id.main_weight_btn:
			startActivity(new Intent(this, GravityEx1.class));
			break;
		case R.id.main_padding:
			startActivity(new Intent(this, PaddingEx.class));
			break;
		case R.id.main_relative_btn:
			startActivity(new Intent(this, RelativeEx.class));
			break;
		case R.id.main_frame_btn:
			startActivity(new Intent(this, FrameEx.class));
			break;
		case R.id.main_multipage_btn:
			startActivity(new Intent(this, MultiPageEx.class));
			break;
		case R.id.main_codelayout_btn:
			startActivity(new Intent(this, CodeLayout.class));
			break;
		case R.id.main_inflation_btn:
			startActivity(new Intent(this, InflationEx.class));
			break;
		case R.id.main_layoutparmeter_btn:
			startActivity(new Intent(this, LayoutParameterEx.class));
			break;
		case R.id.main_setparameter_btn:
			startActivity(new Intent(this, SetParameterEx.class));
			break;
		case R.id.main_gridlayout_btn:
			startActivity(new Intent(this, GridLayoutEx.class));
			break;
		case R.id.main_cellposition_btn:
			startActivity(new Intent(this, CellPosition.class));
			break;
		case R.id.main_cellspan_btn:
			startActivity(new Intent(this, CellSpan.class));
			break;
		case R.id.main_customview_btn:
			startActivity(new Intent(this, CustomViewEx.class));
			break;
		case R.id.main_drawbitmap_btn:
			startActivity(new Intent(this, DrawBitmapEx.class));
			break;
		case R.id.main_toastlayout_btn:
			startActivity(new Intent(this, ToastLayoutEx.class));
			break;
		case R.id.main_vibrate_btn:
			startActivity(new Intent(this, Vibrate.class));
			break;
		case R.id.main_ch08_btn:
			startActivity(new Intent(this, Ch08Main.class));
			break;
		case R.id.main_ch09_btn:
			startActivity(new Intent(this, Ch09Main.class));
			break;
		case R.id.main_ch11_btn:
			startActivity(new Intent(this, Ch11Main.class));
			break;
		case R.id.main_ch12_btn:
			startActivity(new Intent(this, Ch12Main.class));
			break;
		case R.id.main_ch13_btn:
			startActivity(new Intent(this, Ch13Main.class));
			break;
		case R.id.main_ch14_btn:
			startActivity(new Intent(this, Ch14Main.class));
			break;
		case R.id.main_ch16_btn:
			startActivity(new Intent(this, Ch16Main.class));
			break;
		case R.id.main_ch17_btn:
			startActivity(new Intent(this, Ch17Main.class));
			break;
		case R.id.main_ch18_btn:
			startActivity(new Intent(this, Ch18Main.class));
			break;
		case R.id.main_ch19_btn:
			startActivity(new Intent(this, Ch19Main.class));
			break;
		}
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
